package com.zone.example.controller;

import com.zone.weixin4j.controller.WxController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * Created by Yz on 2017/3/16.
 * 微信对接
 */

@RestController
public class XxController extends WxController {

    @RequestMapping("/wx")
    protected void doRequest(HttpServletRequest request, HttpServletResponse response, @RequestParam(required = false) String encrypt_type, @RequestParam(required = false) String echostr, @RequestParam(required = false) String timestamp, @RequestParam(required = false) String nonce, @RequestParam(required = false) String signature, @RequestParam(required = false) String msg_signature, @RequestParam(required = false) String weixin_id) {
        super.processMessage(request, response, encrypt_type, echostr, timestamp, nonce, signature, msg_signature, weixin_id);
    }

}
